﻿using Lhz.Sc.Entity.Database;
using Lhz.Test.Common;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;

namespace Lhz.Sc.Test.LhzScService
{
    [TestClass]
    public class UnitTestUser
    {
        [TestMethod]
        public void UserServiceTestMethodCommon()
        {
            var user = TestEntityBuilder.BuildUser();
            var dst = new ServiceCrudTester<Guid, User>(TestConst.ServiceUserUrl);
            var changes = new Dictionary<string, object>();
            changes.Add("Password", "Password");
            changes.Add("Name", "Name");
            changes.Add("Phone", "13999999999");
            changes.Add("IsAdmin", true);
            dst.CrudTest(user, user.Guid, changes);
        }
    }
}
